{{--
  -- Created by PhpStrom
  -- User: 郭碧云
  -- Date: 2021/2/25 8:49
  -- Desc:
  --}}

@extends("layout.admin")

@section("title")
    用户详情
@endsection

@section("content")
    <style>
        .layui-input:disabled, .layui-input[disabled]{
            color: #333333;
            opacity: 1;
            -webkit-text-fill-color:#333333; // ios 和 安卓9.0 必须添加此属性，才会生效
            -webkit-opacity:1;
        }
    </style>
    <link rel="stylesheet" href="{{asset('css/public.css')}}" media="all"/>
    <div class="layui-col-md3 layui-col-xs12 user_right">
        <div class="layui-upload-list">
            <img id="showimg" name="showimg" style="width: 60%"
                 class="layui-upload-img layui-circle userFaceBtn userAvatar"
                 src=@if($user->avatar==null) "{{asset('images/temp.jpeg')}}" @else "{{asset($user->avatar)}}" @endif />
        </div>
        <p>我的靓照</p>
    </div>
    <div class="layui-col-md6 layui-col-xs12">
        <div class="layui-form-item">
            <label class="layui-form-label">用户名：</label>
            <div class="layui-input-block">
                <input type="text" value="{{$user->name}}" disabled class="layui-input" style="border: 0 !important;">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">姓名：</label>
            <div class="layui-input-block">
                <input type="text" value="{{$user->real_name}}" disabled class="layui-input" style="border: 0 !important;">
            </div>
        </div>

        <div class="layui-form-item" pane="">
            <label class="layui-form-label">邮箱：</label>
            <div class="layui-input-block userSex">
                <input type="text" value="{{$user->email}}" disabled class="layui-input" style="border: 0 !important;">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">手机号码：</label>
            <div class="layui-input-block">
                <input type="text" value="{{$user->mobile|'未留下联系方式'}}" disabled class="layui-input"
                       style="border: 0 !important;">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">所属站点：</label>
            <div class="layui-input-block">
                <input type="text" value="{{$site}}" disabled class="layui-input" style="border: 0 !important;">
            </div>
        </div>
        <div class="layui-form-item userAddress">
            <label class="layui-form-label">所属机构：</label>
            <div class="layui-input-block">
                <input type="text" value="{{$org}}" disabled class="layui-input" style="border: 0 !important;">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">账号状态：</label>
            <div class="layui-input-block">
                <input type="text" @if($user->is_locked==0) value="启用" @else value="禁用" @endif disabled
                       class="layui-input" style="border: 0 !important;">
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button type="button" class="layui-btn layui-btn-normal"
                        onclick='window.location.href="javascript:history.go(-1)"'>返回
                </button>
            </div>
        </div>
    </div>
@endsection

